// 轮播图

import {request} from './request'

//新建
export function AddBanner(data){
    return request({
        url:'/api/boss/banner/store',
        method:'POST',
        data
    })
}

//获取
export function GetBannerList(data){
    return request({
        url:'/api/boss/banner/list',
        data
    })
}

//更新
export function UpdateBanner(data){
    return request({
        url:`/api/boss/banner/update/${data.id}`,
        method:'PUT',
        data
    })
}

//删除
export function DeleteBanner(id){
    return request({
        url:`/api/boss/banner/delete/${id}`,
        method:'DELETE'
    })
}